// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import App from './App'
// 引入axios
import axios from 'axios'
import Qs from 'qs'

Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.qs = Qs

//const baseURL = 'http://192.168.3.10:8088'
const baseURL = 'http://192.168.3.10:8088'
axios.defaults.baseURL = baseURL
// Vant 组件 ------ 基础组件（必须）
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// import Qs from 'qs'
// Vue.prototype.qs = Qs

// vue-beauty 的 UI 库 ------ 自适应组件（非必须）
import vueBeauty from 'vue-beauty';
import 'vue-beauty/package/style/vue-beauty.min.css';
Vue.use(vueBeauty);

// vue-touch 的手势组件 ------ 用左右滑或者上下滑动等（非必须）
import VueTouch from 'vue-touch';
Vue.use(VueTouch, {name: 'v-touch'});
VueTouch.config.swipe = {
	threshold: 200 // 手指左右滑动距离
}

// Video 视频兼容性播放组件
import VueVideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
Vue.use(VueVideoPlayer)

// 引入axios
// import axios from 'axios'
// Vue.prototype.$http = axios

// const baseURL = 'http://192.168.0.118:8088'
// axios.defaults.baseURL = baseURL

/* eslint-disable no-new */
new Vue({
	router,
	render: h => h(App)
}).$mount('#app-box')